package com.eastfair.venueservice.service;

import com.eastfair.boot.service.SuperService;
import com.eastfair.venueservice.dto.DrawingDTO;
import com.eastfair.venueservice.entity.Drawing;
import com.eastfair.venueservice.vo.DrawingVO;

import java.util.List;

/**
 * <p>
 * 业务接口
 * 综合图纸分类
 * </p>
 *
 * @author dq
 * @date 2022-10-27
 */
public interface DrawingService extends SuperService<Drawing> {

    /**
     * 查询图纸列表VO.
     *
     * @param drawingDTO the drawing page query
     * @return drawing list
     */
    List<DrawingVO> listDrawingVO(DrawingDTO drawingDTO);

    /**
     * 查询图纸列表.
     *
     * @param drawingDTO the drawing page query
     * @return the list
     */
    List<Drawing> listDrawing(DrawingDTO drawingDTO);

    /**
     * id获取图纸详情.
     *
     * @param id the id
     * @return the drawing vo by id
     */
    DrawingVO getDrawingVOById(Long id);

    /**
     * 保存图纸
     *
     * @param drawingSaveDTO the drawing save dto
     * @return boolean
     */
    Boolean saveDrawing(DrawingDTO drawingSaveDTO);

    /**
     * 修改图纸信息
     *
     * @param drawingUpdateDTO the drawing update dto
     * @return boolean
     */
    Boolean updateDrawing(DrawingDTO drawingUpdateDTO);

    /**
     * 删除图纸
     *
     * @param id the id
     * @return boolean
     */
    Boolean delDrawing(Long id);

}
